package com.sophossystems.client.asmon.dao;

import com.sophossystems.client.asmon.dao.RepresentanteDocDao;
import com.sophossystems.client.asmon.dto.RepresentanteDocDTO;
import com.sophossystems.client.asmon.dto.RepresentanteDocPkDTO;
import com.sophossystems.client.asmon.exceptions.DaoException;
import java.util.List;

public interface RepresentanteDocDao
{
	/**
	 * Method 'insert'
	 * 
	 * @param dto
	 * @return RepresentanteDocPk
	 */
	public RepresentanteDocPkDTO insert(RepresentanteDocDTO dto);

	/** 
	 * Updates a single row in the REPRESENTANTE_DOC table.
	 */
	public void update(final RepresentanteDocDTO dto) throws DaoException;

	/** 
	 * Deletes a single row in the REPRESENTANTE_DOC table.
	 */
	public void delete(RepresentanteDocPkDTO pk) throws DaoException;

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'idRepLegal = :idRepLegal'.
	 */
	public RepresentanteDocDTO findByPrimaryKey(int idRepLegal) throws DaoException;

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria ''.
	 */
	public List<RepresentanteDocDTO> findAll() throws DaoException;

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'idRepLegal = :idRepLegal'.
	 
	public List<RepresentanteDocDTO> findWhereIdRepLegalEquals(int idRepLegal) throws DaoException;*/

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'idCliente = :idCliente'.
	 */
	public List<RepresentanteDocDTO> findWhereIdClienteEquals(int idCliente) throws DaoException;

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'compDomicilio = :compDomicilio'.
	 
	public List<RepresentanteDocDTO> findWhereCompDomicilioEquals(int compDomicilio) throws DaoException;*/

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'fiel = :fiel'.
	 
	public List<RepresentanteDocDTO> findWhereFielEquals(int fiel) throws DaoException;*/

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'compDomicilioFiscal = :compDomicilioFiscal'.
	 
	public List<RepresentanteDocDTO> findWhereCompDomicilioFiscalEquals(int compDomicilioFiscal) throws DaoException;*/

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'curp = :curp'.
	 
	public List<RepresentanteDocDTO> findWhereCurpEquals(int curp) throws DaoException;*/

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'rfc = :rfc'.
	 
	public List<RepresentanteDocDTO> findWhereRfcEquals(int rfc) throws DaoException;*/

	/** 
	 * Returns all rows from the REPRESENTANTE_DOC table that match the criteria 'otroRfc = :otroRfc'.
	 
	public List<RepresentanteDocDTO> findWhereOtroRfcEquals(int otroRfc) throws DaoException;*/

	/** 
	 * Returns the rows from the REPRESENTANTE_DOC table that matches the specified primary-key value.
	 */
	public RepresentanteDocDTO findByPrimaryKey(RepresentanteDocPkDTO pk) throws DaoException;

	public RepresentanteDocPkDTO findLastInsert() throws DaoException;
}
